<h:panelGrid xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:t="http://myfaces.apache.org/tomahawk" width="100%">

	<p:dataTable var="de" value="#{evokPatientTherapyArchiveBean.tsModel}" id="servicelist" widgetVar="wdgServiceList"
		rowIndexVar="ri" emptyMessage="">

		<p:column headerText="#{msgs.table_index}">
			<h:outputText value="#{ri+1}" />
		</p:column>

		<p:column headerText="#{msgs.default_name}">
			<h:outputText value="#{de.service.name}" />
		</p:column>

		<p:column headerText="#{msgs.therapy_service_amount}"
			styleClass="right">
			<h:outputText value="#{de.amount} " stlyeClass="text-align:right;" />
			<h:outputText value="#{de.service.unit}" converter="enumConverter"
				enumName="TherapyUnit" />
		</p:column>

		<p:column headerText="#{msgs.therapy_service_price}"
			styleClass="right">
			<h:outputText value="#{de.priceUnit} " />
			<h:outputText value="#{de.service.currency}"
				converter="enumConverter" enumName="TherapyServiceCurrency" />
		</p:column>

		<p:column headerText="#{msgs.therapy_service_totalprice}"
			styleClass="right">
			<h:outputText value="#{de.priceTotal} " />
			<h:outputText value="#{de.service.currency}"
				converter="enumConverter" enumName="TherapyServiceCurrency" />
		</p:column>

		<p:columnGroup type="footer">
			<p:row>
				<p:column colspan="4"
					footerText="#{msgs.therapy_service_totalprice1}"
					style="text-align:right" />
				<p:column footerText="#{evokPatientTherapyArchiveBean.priceTotal}"
					style="text-align:right" />
			</p:row>
		</p:columnGroup>
	</p:dataTable>
</h:panelGrid>
